package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.entity.MesWorkshop;
import com.woniuxy.mesboot.mapper.MesWorkshopMapper;
import com.woniuxy.mesboot.service.WorkshopService;
import com.woniuxy.mesboot.vo.WorkshopVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WorkshopServiceImpl implements WorkshopService {
    @Resource
    private MesWorkshopMapper workshopMapper;

    @Override
    public List<WorkshopVO> selectAllName(Long id) {
        return workshopMapper.selectAllName(id);
    }

    @Override
    public List<MesWorkshop> selectAll() {
        return workshopMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return workshopMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MesWorkshop record) {
        return workshopMapper.insert(record);
    }

    @Override
    public int insertSelective(MesWorkshop record) {
        return workshopMapper.insertSelective(record);
    }

    @Override
    public MesWorkshop selectByPrimaryKey(Long id) {
        return workshopMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesWorkshop record) {
        return workshopMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesWorkshop record) {
        return workshopMapper.updateByPrimaryKey(record);
    }
}
